package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.Baoque;
import com.itgaoshu.hospitalproject.bean.Drugstore;
import com.itgaoshu.hospitalproject.bean.Ypharmacy;
import com.itgaoshu.hospitalproject.mapper.OutinstoreMapper;
import com.itgaoshu.hospitalproject.service.OutinstoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class OutinstoreServiceImpl implements OutinstoreService {
    @Autowired
    private OutinstoreMapper outinstoreMapper;
    @Override
    public List<Baoque> selbaoquedan() {
        return outinstoreMapper.selbaoquedan();
    }

    @Override
    public List<Drugstore> selbaoquedrugname(Drugstore drugstore) {
        return outinstoreMapper.selbaoquedrugname(drugstore);
    }

    @Override
    public int deleteDrugsByshuliang(Drugstore drugstore) {
        return outinstoreMapper.deleteDrugsByshuliang(drugstore);
    }
    @Override
    public int selpharymacyname(Ypharmacy ypharmacy) {
        return outinstoreMapper.selpharymacyname(ypharmacy);
    }

    public int addTopharmacy(Ypharmacy ypharmacy)
    {
        return outinstoreMapper.addTopharmacy(ypharmacy);
    }

    @Override
    public int deleteDrugsByName(Drugstore drugstore) {
        return outinstoreMapper.deleteDrugsByName(drugstore);
    }

    @Override
    public int seldrugnamenum(Drugstore drugstore) {
        return outinstoreMapper.seldrugnamenum(drugstore);
    }


    @Override
    public int uppharmacynumber(Drugstore drugstore) {
        return outinstoreMapper.uppharmacynumber(drugstore);
    }

    public int uppharymacy(Ypharmacy ypharmacy){
        return outinstoreMapper.uppharymacy(ypharmacy);
    }
    @Override
    public int selbaoquenamenum(Ypharmacy ypharmacy) {
        return outinstoreMapper.selbaoquenamenum(ypharmacy);
    }

    @Override
    public int delbaoquenamenum() {
        return outinstoreMapper.delbaoquenamenum();
    }

    @Override
    public int selbaoquecount() {
        return outinstoreMapper.selbaoquecount();
    }

    @Override
    public int selbaoqueName(Ypharmacy ypharmacy) {
        return outinstoreMapper.selbaoqueName(ypharmacy);
    }

    @Override
    public int upbaoquenumber1(Ypharmacy ypharmacy) {
        return outinstoreMapper.upbaoquenumber1(ypharmacy);
    }
}
